Skip to content

Conversation

@mathieu-benoit
Copy link
Contributor

@mathieu-benoit mathieu-benoit commented Oct 29, 2025

Fix JSON tag for ServiceProviderConfig type field.

I think this is a typo, since it was created there: #758.

Just for context, with this snippet of my Compose file:

...
services:
    my-model:
        provider:
            type: model
            options:
                model:
                    - ai/smollm2

When doing this https://github.com/score-spec/score-compose/blob/main/internal/patching/patching.go#L131, getting this error when doing a JSON decode/validation:

json: unknown field "type"

While not getting any error when running docker compose up on this file (which is successfully doing the YAML decode/validation way).

Copy link
Collaborator

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@glours glours merged commit df0892c into compose-spec:main Oct 29, 2025
8 checks passed
@mathieu-benoit mathieu-benoit deleted the patch-1 branch October 29, 2025 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants